/**
 * 
 */
package com.mals.pingpong.model;

import java.util.List;

/**
 * @author marcosal
 * 
 */
public abstract class Element {

	/**
	 * draw the element from the first point to the last point.
	 */
	protected List<Point> vertex;

	/**
	 * List of forces affecting this shape.
	 */
	protected List<Force> forces;

	/**
	 * @return the vertex
	 */
	public List<Point> getVertex() {
		return vertex;
	}

	/**
	 * @param vertex
	 *            the vertex to set
	 */
	public void setVertex(List<Point> vertex) {
		this.vertex = vertex;
	}

	/**
	 * @return the forces
	 */
	public List<Force> getForces() {
		return forces;
	}

	/**
	 * @param forces
	 *            the forces to set
	 */
	public void setForces(List<Force> forces) {
		this.forces = forces;
	}
	
	
	public double getTop () {
		if (vertex == null) {
			return 0;
		}
		
		double top = 0;
		
		for (Point currentPoint : vertex) {
			if (currentPoint.)
		} 
	}

	/**
	 * @return the width
	 */
	public double getWidth() {
		
		if (vertex == null) {
			return 0;
		}
		
		double length = 0;
		
		for (Point currentPoint : vertex) {
			if (currentPoint.ge)
		} 
	}

	/**
	 * @return the height
	 */
	public abstract double getHeight();

	/**
	 * @param height
	 *            the height to set
	 */
	public abstract void setHeight(double height);

	/**
	 * @return the depth
	 */
	public abstract double getDepth();

	/**
	 * @param depth
	 *            the depth to set
	 */
	public abstract void setDepth(double depth);

}
